<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <title>修改信息</title>
  </head>
  <body>
  <center>
  <s:if test="#session.showBookType==null"><s:action name="showBookType" namespace="/book"></s:action></s:if>
   	<s:form theme="simple" action="modifyBook" namespace="/book">
   	<s:hidden name="bookInfo.bookId" value="%{bookInfo.bookId}"></s:hidden>
   	<p>书码：<s:textfield name="bookInfo.bookCode" readonly="true" value="%{bookInfo.bookCode}"></s:textfield></p>
   	<p>书名：<s:textfield name="bookInfo.bookName" value="%{bookInfo.bookName}"></s:textfield></p>
   	<p>类别：<s:select name="bookInfo.bookType" list="#session.allBookType" listKey="key" listValue="value" ></s:select></p>
   	<p>价格：<s:textfield name="bookInfo.bookPrice" value="%{bookInfo.bookPrice}"></s:textfield></p>
   	<p>出版社：<s:textfield name="bookInfo.bookPress" value="%{bookInfo.bookPress}"></s:textfield></p>
   	<p>库余量：<s:textfield name="bookInfo.bookNum" value="%{bookInfo.bookNum}"></s:textfield></p>
   	<s:submit value="修改"></s:submit>
   	<s:reset value="重置"></s:reset>
   	</s:form>
   	<p>${alertMessage}</p>
   	</center>
  </body>
</html>
